using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Diagnostics;
using Microsoft.WindowsAzure.ServiceRuntime;
using Microsoft.WindowsAzure.StorageClient;

namespace WebRole1
{
    public class WebRole : RoleEntryPoint
    {
        public override bool OnStart()
        {
            # region test for upload image


            //CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>
            //{
            //    configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));
            //});
            //// get the blob connection string
            //CloudStorageAccount objStorage = CloudStorageAccount.FromConfigurationSetting("BlobConnectionString");
            //// get the client reference
            //CloudBlobClient objClient = new CloudBlobClient(objStorage.BlobEndpoint, objStorage.Credentials);
            //// Get the reference to container
            //CloudBlobContainer objContainer = objClient.GetContainerReference("mycontainer");

            //// Create the container if it does not exist
            //objContainer.CreateIfNotExist();





            //// Get the reference to container
            //objContainer = objClient.GetContainerReference("face");

            //// Create the container if it does not exist
            //objContainer.CreateIfNotExist();

            # endregion

            // For information on handling configuration changes
            // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.

            return base.OnStart();
        }
    }
}
